import request from "@/api/index.js"

// 获取话题列表
export function getTopicListApi() {
  return request({
    url: `/article-classify/topic-list`,
    method: 'get'
  })
}

// 发布文章
export function postArticesApi(familyId, articleTitle, articleContent, imgpath) {
  return request({
    url: '/IntactArticle',
    method: 'post',
    data: {
      "familyId": familyId,
      "title": articleTitle,
      "content": articleContent,
      "imageLink": imgpath
    }
  })
}
